-- GENERATED SPELL FOR [Deep Stinger] --


function spell0_8926(pUnit, Event) --@Barbed Sting,Self--
pUnit:FullCastSpellOnTarget(14534,pUnit)
pUnit:RegisterEvent('Sorts_8926', 598, 1)
end

function spell1_8926(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8926', 580, 1)
end

function Sorts_8926(pUnit, Event)
local choix_sorts_8926 = math.random(0, 1)
if choix_sorts_8926 == 0 then
pUnit:RegisterEvent('spell0_8926', 1, 1)
end
if choix_sorts_8926 == 1 then
pUnit:RegisterEvent('spell1_8926', 1, 1)
end
end

function mob8926_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8926', math.random(1500, 3000), 1)
end

function mob8926_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8926_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8926_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8926, 1, 'mob8926_Action')
RegisterUnitEvent(8926, 2, 'mob8926_Leave')
RegisterUnitEvent(8926, 3, 'mob8926_Kill')
RegisterUnitEvent(8926, 4, 'mob8926_Die')
